package com.diandian.backend.jingdong.home.exchange.req;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;
import java.util.List;

public class BatchQueryUseableInfoReq implements Serializable {

    private List<BatchQueryUseableInfoReqData> data;

    public void check(){
        if(this.data == null|| this.data.size()==0){
            throw new DefaultException("参数缺失");
        }
        for (int i = 0; i < this.data.size(); i++) {
            this.data.get(i).check();
        }
    }

    public List<BatchQueryUseableInfoReqData> getData() {
        return data;
    }

    public void setData(List<BatchQueryUseableInfoReqData> data) {
        this.data = data;
    }
}
